<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="../../favicon.ico">
    <title>Off Canvas Template for Bootstrap</title>
    <link href="assets/css/bootstrap.min.css" rel="stylesheet">
    <link href="assets/css/offcanvas.css" rel="stylesheet">
    <link href="assets/css/style.css" rel="stylesheet">
    <script src="assets/js/ie-emulation-modes-warning.js"></script>

</head>
<body>
<div class="modal fade" id="login">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span class="glyphicon glyphicon-remove"></span>
        </button>

        <p class="text-muted text-center btn-block btn btn-primary btn-rect">普通用户登录</p>
      </div>
      <div class="modal-body">

        <form class="form-inline text-align"  name="fm" method="post" action="doLogin.php" onsubmit="return check()"
 class="form-horizontal">
          <input type="hidden" name="vid" id="geshouid" >
          <div class="form-group " style="padding-left: 170px">
            <label class="sr-only" for="uname">用户名</label>
            <div class="input-group">
              <div class="input-group-addon">
                <span class="glyphicon glyphicon-user"></span>
              </div>
              <input type="text" class="form-control" id="uname" name="uname" placeholder="用户名"></div>
          </div>

          <div class="form-group" style="padding-left: 170px">
            <label class="sr-only" for="pwd">密码</label>
            <div class="input-group">
              <div class="input-group-addon">
                <span class="glyphicon glyphicon-lock"></span>
              </div>
              <input type="password" class="form-control" id="pwd" name="pwd" placeholder="密码"></div>
          </div>
          <div style="padding-top: 30px;text-align:center;">
            <button type="submit" class="btn btn-primary">登陆</button>
            <button type="reset" class="btn btn-danger">重置</button>
          </div>

        </form>

      </div>

    </div>
    <!-- /.modal-content --> </div>
  <!-- /.modal-dialog -->
</div>
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="myModalLabel">请填写用户注册信息</h4>
      </div>
    <form method=post action="index1.php?c=user&m=adduser" enctype="multipart/form-data" class="form-horizontal">
  <div class="form-group">
    <label class="col-md-2 control-label">姓名</label>
    <div class="col-md-5">
      <input type="text" name="username" class="form-control" placeholder="姓名" required="">
    </div>
  </div>
  <div class="form-group">
    <label class="col-md-2 control-label">密码</label>
    <div class="col-md-5  ">
      <input type="password" name="password" class="form-control" placeholder="密码" required="">
    </div>
  </div>
<div class="form-group">
    <label class="col-md-2 control-label">出生日期</label>
    <div class="col-md-4">
      <input type="date" name="birthdate" class="form-control" placeholder="出生日期" required="">
    </div>
  </div>
  <div class="form-group">
    <label class="col-md-2 control-label">性别</label>
    <div class="col-md-10">
    <label class="radio-inline">
        <input type="radio" name="gender" value=0 checked>男
    </label>
    <label class="radio-inline">
        <input type="radio" name="gender" value=1>女
    </label>
    </div>
  </div>
  <div class="form-group">
    <label class="col-md-2 control-label">爱好</label>
    <div class="col-md-10">
      <label class="checkbox-inline">
        <input type="checkbox" name="hobby[]" value="旅游">旅游
      </label>
      <label class="checkbox-inline">
        <input type="checkbox" name="hobby[]" value="登山">登山
      </label>
      <label class="checkbox-inline">
        <input type="checkbox" name="hobby[]" value="健身">健身
      </label>
      <label class="checkbox-inline">
        <input type="checkbox" name="hobby[]" value="上网">上网
      </label>
      <label class="checkbox-inline">
        <input type="checkbox" name="hobby[]" value="游泳">游泳
      </label>
    </div>
  </div>
   <div class="form-group">
    <label class="col-md-2 control-label">学历</label>
    <div class="col-md-3">
      <select class="form-control" name="degree">
        <option value="">请选择</option>
        <option value=0>高中</option>
        <option value=1>大学</option>
        <option value=2>研究生</option>  
        <option value=3>博士生</option>  
      </select>
    </div>
  </div>
   <div class="form-group">
     <label  class="col-md-2 control-label">自我介绍</label>
     <div class="col-md-10">
       <textarea name="intro" class="form-control" rows="3" placeholder="自我介绍"></textarea>
     </div>
   </div>
   <div class="form-froup">
     <label class="col-md-2 control-label">头像</label>
     <div class="col-md-10">
       <input type="file" name="pic" >
     </div>
   </div>
   <div class="form-group">
     <div class="col-sm-offset-2 col-sm-10"> 
       <input type="submit" class="btn btn-success" value="提交">
       <input type="reset" class="btn btn-warning"  value="重置">
     </div>
   </div>
 </form>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
      </div>
    </div>
  </div>
<nav class="navbar navbar-fixed-top navbar-inverse">
  <div class="container-fluid">
    <!-- Brand and toggle get grouped for better mobile display -->
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
     
    </div>
    <!-- Collect the nav links, forms, and other content for toggling -->
    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
      <ul class="nav navbar-nav">
       <ul class="nav navbar-nav">

<li><a href="index.php">首页</a></li>
<?php
foreach ($data['geshoutype'] as $key => $value)
{
?>
<li><a href="index.php?c=index&m=lists&tid=<?php echo $value["tid"];?>">
<?php
echo $value["typename"];
?>
</a>
</li>
<?php
}
?>

</ul>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li class="active"><a href="">欢迎<?php
session_start();
if(isset($_SESSION["uname"]))
echo " ".$_SESSION["uname"]." ";
else{
echo "您";
}
?>访问本网站</a>
</li>
<?php


//登录成功才显示
if(isset($_SESSION["uname"]))
{
?>

<li><a href="logout.php">注销</a></li>
<?php
}

else{
?>
<div class="modal fade" id="log">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span class="glyphicon glyphicon-remove"></span>
        </button>

        <p class="text-muted text-center btn-block btn btn-primary btn-rect">管理员登录</p>
      </div>
      <div class="modal-body">

        <form class="form-inline text-align"  name="fm" method="post" action="doLog.php" onsubmit="return check()"
 class="form-horizontal">
          <input type="hidden" name="vid" id="geshouid" >
          <div class="form-group " style="padding-left: 170px">
            <label class="sr-only" for="uname">用户名</label>
            <div class="input-group">
              <div class="input-group-addon">
                <span class="glyphicon glyphicon-user"></span>
              </div>
              <input type="text" class="form-control" id="uname" name="uname" placeholder="用户名"></div>
          </div>

          <div class="form-group" style="padding-left: 170px">
            <label class="sr-only" for="pwd">密码</label>
            <div class="input-group">
              <div class="input-group-addon">
                <span class="glyphicon glyphicon-lock"></span>
              </div>
              <input type="password" class="form-control" id="pwd" name="pwd" placeholder="密码"></div>
          </div>
          <div style="padding-top: 30px;text-align:center;">
            <button type="submit" class="btn btn-primary">登陆</button>
            <button type="reset" class="btn btn-danger">重置</button>
          </div>
        </form>

      </div>

    </div>
    <!-- /.modal-content --> </div>
  <!-- /.modal-dialog -->
</div>
<li><a href="#" data-toggle="modal" data-target="#log">管理员登录</a></li>
<li><a href="#" data-toggle="modal" data-target="#login">登录</a></li>
<li><a href="#" data-toggle="modal" data-target="#myModal">注册</a></li>
<?php
}
?>
    
      </ul>
    </div><!-- /.navbar-collapse -->
  </div><!-- /.container-fluid -->
</nav>


<div class="container">
<!--幻灯片开始-->
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
    <!-- Indicators -->
    <ol class="carousel-indicators">
        <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
        <li data-target="#carousel-example-generic" data-slide-to="1"></li>
        <li data-target="#carousel-example-generic" data-slide-to="2"></li>
    </ol>

    <!-- Wrapper for slides -->
    <div class="carousel-inner">
        <div class="item active">
        <img src="assets/images/img1.jpg" class="img-responsive" alt="王菲" >

            <div class="carousel-caption">
                <h3>王菲</h3>
            

            </div>
        </div>
        <div class="item">
            <img src="assets/images/img4.jpg" class="img-responsive" alt="林允儿"
             >

            <div class="carousel-caption">
                <h3>林允儿</h3>

            </div>
        </div>
        <div class="item">
            <img src="assets/images/img2.jpg" class="img-responsive" alt="周杰伦" >

            <div class="carousel-caption">
                <h3>周杰伦</h3>

            </div>
        </div>
    </div>

    <!-- Controls -->
    <a class="left carousel-control" href="#carousel-example-generic" data-slide="prev">
        <span class="glyphicon glyphicon-chevron-left"></span>
    </a>
    <a class="right carousel-control" href="#carousel-example-generic" data-slide="next">
        <span class="glyphicon glyphicon-chevron-right"></span>
    </a>
</div>
<!--幻灯片结束-->






    <div class="row row-offcanvas row-offcanvas-right">
 
        <div class="col-xs-12 col-sm-9">


            <div class="row text-center">
                <div class="col-xs-12 col-lg-12 mlist">
                 <h2><font color="green">内地</font></h2>
<ul class="list-inline row text-center">
<?php
foreach ($data['dianying'] as $key => $value1)
    
{

?>
<li class="col-xs-4 col-sm-3 col-lg-2">
<img src="vimages/<?php
echo $value1["pic"];
?>" class="responsive img-thumbnail"/>
<p><a href="index.php?c=index&m=contents&vid=<?php
echo $value1["vid"];
?>"><?php
echo $value1["geshouname"];
?></a>
</p>
</li>
<?php
}
?>
</ul>
<p><a class="btn btn-default" href="index.php?c=index&m=lists&tid=1" role="button">更多 &raquo;</a></p>
<div class="col-xs-12 col-lg-12 mlist">
                 <h2><font color="green">港台</font></h2>
<ul class="list-inline row text-center">
<?php
foreach ($data['dianshiju'] as $key => $value1) 
{
?>
<li class="col-xs-4 col-sm-3 col-lg-2">
<img src="vimages/<?php echo $value1["pic"];?>" class="responsive imgthumbnail"/>
<p><a href="index.php?c=index&m=contents&vid=<?php echo $value1["vid"];?>">
<?php
echo $value1["geshouname"];
?></a>
</p>
</li>
<?php
}
?>
</ul>
<p><a class="btn btn-default" href="index.php?c=index&m=lists&tid=2" role="button">更多 &raquo;</a></p>
</div>
<div class="col-xs-12 col-lg-12 mlist">
                 <h2><font color="green">欧美</font></h2>
<ul class="list-inline row text-center">
<?php
foreach ($data['donghuapian'] as $key => $value1)
    
{

?>
<li class="col-xs-4 col-sm-3 col-lg-2">
<img src="vimages/<?php
echo $value1["pic"];
?>" class="responsive img-thumbnail"/>
<p><a href="index.php?c=index&m=contents&vid=<?php
echo $value1["vid"];
?>"><?php
echo $value1["geshouname"];
?></a>
</p>
</li>
<?php
}
?>
</ul>
<p><a class="btn btn-default" href="index.php?c=index&m=lists&tid=3" role="button">更多 &raquo;</a></p> 
</div>
<div class="col-xs-12 col-lg-12 mlist">
                 <h2><font color="green">韩国</font></h2>
<ul class="list-inline row text-center">
<?php
foreach ($data['yuanchuang'] as $key => $value1)
    
{

?>
<li class="col-xs-4 col-sm-3 col-lg-2">
<img src="vimages/<?php
echo $value1["pic"];
?>" class="responsive img-thumbnail"/>
<p><a href="index.php?c=index&m=contents&vid=<?php
echo $value1["vid"];
?>"><?php
echo $value1["geshouname"];
?></a>
</p>
</li>
<?php
}
?>
</ul>
<p><a class="btn btn-default" href="index.php?c=index&m=lists&tid=9" role="button">更多 &raquo;</a></p>
</div>


        </div>
                <!--/.col-xs-6.col-lg-4-->

     </div>
     <!--/row-->
    </div>
        <!--/.col-xs-12.col-sm-9-->
  <div class="col-xs-6 col-sm-3 " id="sidebar">
            <div class="list-group text-center" >
                <h2 style="color:red;white;">点击排行</h2>
                <ul class="list-inline row text-center" >
               
<?php
foreach ($data['geshouhint'] as $key => $value) 
{
?>
<li class="col-xs-12 col-lg-6">
<img src="vimages/<?php
echo $value["pic"];
?>" class="responsive img-thumbnail" />
<p><a href="index.php?c=index&m=contents&vid=<?php
echo $value["vid"];
?>"><?php
//显示视频名称中的前 5个字符
echo '<font color="green">'.mb_substr($value["geshouname"],0,6,'utf-8').'</font>';
?></a>
</p>
</li>
<?php
}
?>
</ul>
</div>





 <h2 style="color:red;white;">下载排行</h2>
<ul class="list-inline row text-center">
               
<?php
foreach ($data['geshoudown'] as $key => $value)
{
?>
<li class="col-xs-12 col-lg-6">
<img src="vimages/<?php
echo $value["pic"];
?>" class="responsive img-thumbnail" />
<p><a href="index.php?c=index&m=contents&vid=<?php
echo $value["vid"];
?>"><?php

echo '<font color="blue">'.mb_substr($value["geshouname"],0,6,'utf-8').'</font>';
?></a>
</p>
</li>
<?php
}
?>
</ul>
</div>

</div>
</div>
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/bootstrap.min.js"></script>

<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script src="assets/js/ie10-viewport-bug-workaround.js"></script>

<script src="offcanvas.js"></script>
<script>
    $('.carousel').carousel({
        interval: 3000 //changes the speed
    })
</script>
<?php 
  include "foot.php";
?>
</body>
</html>

 <hr>


    <footer style="height: 10px color:060606">
        <p>&copy; Company 2016</p>
    </footer>

<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->

</body>
</html>
